package cn.sumpu.app.guoguojie.dao;

import java.util.List;
import java.util.Map;

import cn.sumpu.app.guoguojie.domain.Mail;
import cn.sumpu.app.guoguojie.domain.MailLog;
import cn.sumpu.app.guoguojie.exception.AppBusinessException;

public interface MailDao {
	public void insertMailTask(Mail mail) throws AppBusinessException;
	
	public void insertMailTaskLog(MailLog mailLog) throws AppBusinessException;
	
	public void updateMailTask(Mail mail) throws AppBusinessException;
	
	public void updateMailTaskLog(MailLog mailLog) throws AppBusinessException;
	
	public List<Mail> getMailTask(Map<String, Object> map) throws AppBusinessException;

	public int getMailTaskCount(Map<String, Object> map) throws AppBusinessException;
	
	public List<MailLog> getMailTaskLog(Map<String, Object> map) throws AppBusinessException;

	public int getMailTaskLogCount(Map<String, Object> map) throws AppBusinessException;
	
	public void deleteMailTaskLog(Map<String, Object> map) throws AppBusinessException;
	
	public void deleteMailTask(Map<String, Object> map) throws AppBusinessException;
}
